<%--
    Document   : login
    Created on : 19/05/2010, 22:17:19
    Author     : tiago
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="br.terminalrodoviario.*"%>
<%@page import="java.util.*, java.text.*" %>
<jsp:useBean class="br.terminalrodoviario.Company" id="Company" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Guia Terminal Rodoviário</title>
        <style type="text/css" rel="stylesheet">
            @import url("add/css/cod.css");
            @import url("add/css/slider.css");
            @import url("add/css/rodape.css");
        </style>
        <script type="text/javascript" src="add/js/jquery.js"></script>

        <script type="text/javascript" src="add/js/jquery.innerfade.js"></script>

        <script type="text/javascript" src="add/js/config.js"></script>

        <script type="text/javascript" src="add/js/cities.js"></script>
    </head>

    <body>

        <div class="geral">
            <table>
                <tr>
                    <td>
                        <div id="cabecalho"></div>
                    </td>
                </tr>
            </table>
            <div align="right" style="font-family:calibri; font-size:13px;"><a href="Company/login.jsp">Área Restrita</a>&nbsp;&nbsp;&nbsp;</div>
            <table>
                <tr>
                    <td>
                        <div>
                            <ul class="menu">
                                <li class="current"><a href="index.jsp"><b>início</b></a></li>
                                <li><a href="VMCompany.jsp"><b>empresas</b></a></li>
                                <li><a href="VMBusStation.jsp"><b>terminais rodoviários</b></a></li>
                                <li><a href="VMHotel.jsp"><b>hotéis</b></a></li>
                                <li><a href="VMNotice.jsp"><b>notícias</b></a></li>
                                <li><a href="VMTravelTip.jsp"><b>dicas de viagem</b></a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
            <form name="frm" action="Search.jsp" method="post">
                <table width="762px">
                    <tr>
                        <td>
                            <div id="consultaRapida">
                            </div>

                            <div>
                                <ul class="btPesquisar" >
                                    <li><input type="submit" value="Pesquisar"/></li>
                                </ul>
                            </div>
                        </td>
                        <td>
                            <div id="innerfade-holder">
                                <div id="slider">
                                    <div>
                                        <ul id="portfolio">
                                            <li>
                                                <img src="add/images/slider/image.png" alt="first image"/></li>
                                            <li>
                                                <img src="add/images/slider/imageGarcia.png" alt="second image" /></li>
                                            <li>
                                                <img src="add/images/slider/imageBrasilSul.png" alt="third image" /></li>
                                            <li>
                                                <img src="add/images/slider/imagePrincesa.png" alt="fourth image" /></li>
                                            <li>
                                                <img src="add/images/slider/imageJoia.png" alt="fifth image" /></li>
                                        </ul>
                                        <ul id="slide_nav">
                                            <li class="slide_0"></li>
                                            <li class="slide_1"></li>
                                            <li class="slide_2"></li>
                                            <li class="slide_3"></li>
                                            <li class="slide_4"></li>
                                        </ul>
                                        <ul id="slide_control">
                                            <li id="pause_button" class="pause_button"></li>
                                        </ul>
                                    </div>
                                    <ul id="portfolio-desc">
                                        <li></li>
                                        <li></li>
                                        <li></li>
                                        <li></li>
                                        <li></li>
                                    </ul>
                                </div>
                            </div>
                            <div id="slide_nav">
                            </div>
                        </td>
                    </tr>
                </table>

                <table id="textPesquisaDE">
                    <tr>
                        <td>
                            <select class="calibri" name="cboState" style="width:50px; height:22px;" onchange="javascript:findCities(this.options[this.selectedIndex].value,'StateCityServlet','cboCityFrom');">
                                <option value="AC" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AC") ? "selected='true'" : ""%>>AC</option>
                                <option value="AL" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AL") ? "selected='true'" : ""%>>AL</option>
                                <option value="AM" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AM") ? "selected='true'" : ""%>>AM</option>
                                <option value="AP" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AP") ? "selected='true'" : ""%>>AP</option>
                                <option value="BA" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("BA") ? "selected='true'" : ""%>>BA</option>
                                <option value="CE" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("CE") ? "selected='true'" : ""%>>CE</option>
                                <option value="DF" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("DF") ? "selected='true'" : ""%>>DF</option>
                                <option value="ES" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("ES") ? "selected='true'" : ""%>>ES</option>
                                <option value="GO" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("GO") ? "selected='true'" : ""%>>GO</option>
                                <option value="MA" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MA") ? "selected='true'" : ""%>>MA</option>
                                <option value="MT" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MT") ? "selected='true'" : ""%>>MT</option>
                                <option value="MS" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MS") ? "selected='true'" : ""%>>MS</option>
                                <option value="MG" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MG") ? "selected='true'" : ""%>>MG</option>
                                <option value="PA" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PA") ? "selected='true'" : ""%>>PA</option>
                                <option value="PB" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PB") ? "selected='true'" : ""%>>PB</option>
                                <option value="PR" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PR") ? "selected='true'" : ""%>>PR</option>
                                <option value="PE" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PE") ? "selected='true'" : ""%>>PE</option>
                                <option value="PI" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PI") ? "selected='true'" : ""%>>PI</option>
                                <option value="RJ" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RJ") ? "selected='true'" : ""%>>RJ</option>
                                <option value="RN" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RN") ? "selected='true'" : ""%>>RN</option>
                                <option value="RO" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RO") ? "selected='true'" : ""%>>RO</option>
                                <option value="RS" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RS") ? "selected='true'" : ""%>>RS</option>
                                <option value="RR" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RR") ? "selected='true'" : ""%>>RR</option>
                                <option value="SC" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("SC") ? "selected='true'" : ""%>>SC</option>
                                <option value="SE" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("SE") ? "selected='true'" : ""%>>SE</option>
                                <option value="SP" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("SP") ? "selected='true'" : ""%>>SP</option>
                                <option value="TO" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("TO") ? "selected='true'" : ""%>>TO</option>
                            </select>
                        </td>
                        <td>
                            <select class="calibri" name="cboCityFrom" id="cboCityFrom" style="width:100px; height:22px;">
                                <%
                                            for (City c : new City().select("select c from City c where c.removed = 0 and state = '" + (Company.getCity() != null ? Company.getCity().getState() : "AC") + "' or c.id = " + (Company.getCity() != null ? Company.getCity().getId() : 0) + "  order by c.state asc,c.name asc")) {
                                %>
                                <option value="<%=c.getId()%>"  <%=(Company.getCity() != null && Company.getCity().getId() == c.getId() ? "selected='true'" : "")%>><%=c.getName()%></option>
                                <%
                                            }
                                %>
                            </select>
                        </td>
                    </tr>
                </table>
                <table id="textPesquisaPara">
                    <tr>
                        <td>
                            <select class="calibri" name="cboState" style="width:50px; height:22px;" onchange="javascript:findCities(this.options[this.selectedIndex].value,'StateCityServlet','cboCityTo');">
                                <option value="AC" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AC") ? "selected='true'" : ""%>>AC</option>
                                <option value="AL" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AL") ? "selected='true'" : ""%>>AL</option>
                                <option value="AM" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AM") ? "selected='true'" : ""%>>AM</option>
                                <option value="AP" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("AP") ? "selected='true'" : ""%>>AP</option>
                                <option value="BA" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("BA") ? "selected='true'" : ""%>>BA</option>
                                <option value="CE" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("CE") ? "selected='true'" : ""%>>CE</option>
                                <option value="DF" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("DF") ? "selected='true'" : ""%>>DF</option>
                                <option value="ES" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("ES") ? "selected='true'" : ""%>>ES</option>
                                <option value="GO" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("GO") ? "selected='true'" : ""%>>GO</option>
                                <option value="MA" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MA") ? "selected='true'" : ""%>>MA</option>
                                <option value="MT" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MT") ? "selected='true'" : ""%>>MT</option>
                                <option value="MS" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MS") ? "selected='true'" : ""%>>MS</option>
                                <option value="MG" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("MG") ? "selected='true'" : ""%>>MG</option>
                                <option value="PA" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PA") ? "selected='true'" : ""%>>PA</option>
                                <option value="PB" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PB") ? "selected='true'" : ""%>>PB</option>
                                <option value="PR" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PR") ? "selected='true'" : ""%>>PR</option>
                                <option value="PE" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PE") ? "selected='true'" : ""%>>PE</option>
                                <option value="PI" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("PI") ? "selected='true'" : ""%>>PI</option>
                                <option value="RJ" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RJ") ? "selected='true'" : ""%>>RJ</option>
                                <option value="RN" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RN") ? "selected='true'" : ""%>>RN</option>
                                <option value="RO" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RO") ? "selected='true'" : ""%>>RO</option>
                                <option value="RS" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RS") ? "selected='true'" : ""%>>RS</option>
                                <option value="RR" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("RR") ? "selected='true'" : ""%>>RR</option>
                                <option value="SC" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("SC") ? "selected='true'" : ""%>>SC</option>
                                <option value="SE" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("SE") ? "selected='true'" : ""%>>SE</option>
                                <option value="SP" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("SP") ? "selected='true'" : ""%>>SP</option>
                                <option value="TO" <%=Company.getCity() != null && Company.getCity().getState() != null && Company.getCity().getState().equals("TO") ? "selected='true'" : ""%>>TO</option>
                            </select>
                        </td>
                        <td>
                            <select class="calibri" name="cboCityTo" id="cboCityTo" style="width:100px; height:22px;">
                                <%
                                            for (City c : new City().select("select c from City c where c.removed = 0 and state = '" + (Company.getCity() != null ? Company.getCity().getState() : "AC") + "' or c.id = " + (Company.getCity() != null ? Company.getCity().getId() : 0) + "  order by c.state asc,c.name asc")) {
                                %>
                                <option value="<%=c.getId()%>"  <%=(Company.getCity() != null && Company.getCity().getId() == c.getId() ? "selected='true'" : "")%>><%=c.getName()%></option>
                                <%
                                            }
                                %>
                            </select>
                        </td>
                    </tr>
                </table>
            </form>
            <table id="conteudoIndex">
                <tr>
                    <td id="image1">
                        <table id="tituloIndex">
                            <tr>
                                <td align="left">
                                    &nbsp;&nbsp;Dicas de Viagens
                                </td>
                            </tr>
                        </table>
                        <table id="recadoIndex">
                            <tr>
                                <td align="justify">
                                   <br/><br/>
                                   <b>ICARAIZINHO DE AMONTADA, CEARÁ</b><br/><br/>
                                   Águas mornas e tranquilas, onde as ondas parecem não existir. Essa pode ser a descrição mais próxima e modesta de
                                   Icarai de Amontada (para os íntimos, só Icaraizinho).
                                   Talvez você nunca tenha ouvido falar dessa praia cearense,
                                   localizada a 190 km de Fortaleza... <a href="VMTravelTip.jsp">Veja +</a>
                                    
                                </td>
                            </tr>
                        </table>

                    </td>
                    <td id="image2">
                          <table id="tituloIndex">
                            <tr>
                                <td align="left">
                                   &nbsp;&nbsp;Notícias
                                </td>
                            </tr>

                        </table>
                        <table id="recadoIndex">
                            <tr>
                                <td align="justify">
                                    <br/>
                                    <b>DIADEMA VAI PRIVATIZAR LINHAS DA ETCD.</b><br/><br/>
                                    A Câmara Municipal de Diadema, na região do ABC paulista,
                                    aprovou nesta quinta-feira, 10, por unanimidade, o projeto
                                    de lei de autoria do Executivo Municipal que autoriza a privatização
                                    das cinco linhas de ônibus operadas pela Empresa de Transporte Coletivo de Diadema. <a href="VMNotice.jsp">Veja +</a>
                                </td>
                            </tr>
                        </table>
                    </td>
                           <td id="image3">
                           <table id="tituloIndex">
                            <tr>
                                <td align="left">
                                    &nbsp;&nbsp;Dúvidas
                                </td>
                            </tr>
                            <table id="recadoIndex">
                            <tr>
                                <td align="justify">
                                   <br/>
                                   <b>COMO ORGANIZAR A MALA?</b><br/><br/>
                                   Quem não gosta de viajar, não é mesmo? Conhecer novos lugares,
                                   novas culturas, respirar novos ares,
                                   eliminar o estresse acumulado na vida cotidiana.
                                   Depois da escolha do destino, outro item importante
                                   para esse momento é a organização das malas... <a href="VMTravelTip.jsp">Veja +</a>

                                </td>
                            </tr>
                        </table>
                        </table>
                    </td>
                </tr>
            </table>

            <table id="rodape">
                <tr>
                </tr>
            </table>
            <table id="btRodape" style="text-decoration: none;">
                <tr>
                    <td align="center" width="80px">
                        <ul class="btYoutube">
                            <li><a title="Youtube" href="http://www.youtube.com" /></li>
                        </ul>
                    </td >
                    <td align="center" width="80px">
                        <ul class="btOrkut">
                            <li><a title="Orkut" href="http://www.orkut.com" /></li>
                        </ul>
                    </td>
                    <td align="center" width="205px">
                        <ul class="btTwitter">
                            <li><a title="Twitter" href="http://twitter.com" /></li>
                        </ul>
                    </td>
                    <td align="center">
                        <a title="Trabalhe Conosco" class="text" href="Carrer.jsp" >Trabalhe Conosco</a>
                    </td>
                    <td align="center">
                        <a title="Mapa do Site" class="text" href="SiteMap.jsp">Mapa do Site</a>
                    </td>
                    <td align="center">
                        <a title="Contatos" class="text" href="Contact.jsp">Contatos</a>
                    </td>
                </tr>
            </table>
        </div>
    </body>
</html>
